package com.shu.juc;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author ssm
 * @version V1.0
 * @description:
 * @date 2020/7/31 9:49
 */

public class AtomicTest {


    public static void main(String[] args) {
        AtomicInteger atomicInteger = new AtomicInteger(5);

        int andAdd = atomicInteger.getAndAdd(1);

        System.out.println(atomicInteger.get());






    }

}
